﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using PROFIP.Persistence.DTO.Scales;

namespace PROFIP
{
    public partial class WHOQOLBREFForm : ScaleForm
    {
        public WHOQOLBREFForm(MainForm mainForm, WHOQOLBREFDTO dto, int avaliationSheetIndex)
            : base(mainForm, dto, avaliationSheetIndex)
        {
            if (dto == null) return;
            InitializeComponent();
        }

        private void onClose(object sender, FormClosingEventArgs e)
        {
            WHOQOLBREFDTO dto = new WHOQOLBREFDTO();
            base.mainForm.updateWHOQOLBREF(dto, base.avaliationSheetIndex);
        }
    }
}
